﻿@model IEnumerable<HQPad.Models.RuleSet>
           
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

@section PageScripts {
}

<h1>HQPad admin</h1>

<section class="content">

    <h2>Rule sets</h2>

    <table>
        <tr>
            <th>
                Version
            </th>
            <th></th>
            <th></th>
            <th></th>
        </tr>
    @foreach (var item in Model) {
        <tr>
            <td>@Html.ActionLink(item.MajorVersion + "." + item.MinorVersion, "Edit", "Rules", new { id = item.RuleSetID }, null)</td>
            <td><a href="/admin/@Html.Raw(item.RuleSetID.ToString())/skills">View skills</a></td>
            <td><a href="/admin/@Html.Raw(item.RuleSetID.ToString())/spells">View spells</a></td>
            <td><a href="/admin/@Html.Raw(item.RuleSetID.ToString())/invocations">View invocations</a></td>
        </tr>
    
    }
    </table>
</section>